Skip to content

Conversation

@sophia-chen-ttd
Copy link
Contributor

No description provided.

private final KmsClientBuilder kmsClientBuilder;

public JWTTokenProvider(JsonObject config, KmsClientBuilder clientBuilder) {
public JWTTokenProvider(JsonObject config) {
Copy link
Contributor

@vishalegbert-ttd vishalegbert-ttd May 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes more sense to pass in a Supplier<KmsClientBuilder>

KmsClient client = null;
try {
client = getKmsClient(this.kmsClientBuilder, this.config);
client = getKmsClient(kmsClientBuilderSupplier.get(), this.config);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this. kmsClientBuilderSupplier to be consistent

@sophia-chen-ttd sophia-chen-ttd merged commit b26c2ee into main May 2, 2025
4 checks passed
@sophia-chen-ttd sophia-chen-ttd deleted the sch-UID2-5355-fix-jwt-token-validation branch May 2, 2025 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants